import rxAjax from '@/assets/js/ajax.js';

const BpmDefNodeApi = {
  baseUrl: '/api-bpm/bpm/core/bpmDefNodeCount',
  designBaseUrl:'/bpm-designer'  ,
  export:  '/api-bpm/bpm/core/bpmDefNodeCount/listExport'
}

BpmDefNodeApi.saveNodesCount=function (defId,actDefId,nodeList){
    let url = BpmDefNodeApi.baseUrl + `/saveNodesCount?defId=${defId}&actDefId=${actDefId}`;
    return rxAjax.postJson(url,nodeList);
}

BpmDefNodeApi.get=function (id){
    let url = BpmDefNodeApi.baseUrl + '/get?pkId=' + id;
    return rxAjax.get(url);
}
BpmDefNodeApi.getByDefId=function (defId){
    let url = BpmDefNodeApi.baseUrl + '/getByDefId?defId=' + defId;
    return rxAjax.get(url);
}

BpmDefNodeApi.deleByDefId=function (defId){
    let url = BpmDefNodeApi.baseUrl + '/deleByDefId?defId=' + defId;
    return rxAjax.get(url);
}



export default  BpmDefNodeApi;


